//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "SniperTraining\fn_addAction.sqf"
#include <core_macros.h>

TRACE_1("Start",ARR_2(_this select 0,_this select 1));
TMFPROFILERSTART;

private ["_object","_action_title","_action","_id"];
DEFAULT_PARAM(_object,0,objNull);
DEFAULT_PARAM(_action_title,1,"");
DEFAULT_PARAM(_action,2,{});

//_id = _object addAction [GREEN_TEXT(_action_title), _action, [], 10, false, true, "", "true", "", 1.5, 1.5];
_id = _object addAction [GREEN_TEXT(_action_title), _action, [], 10, false, true, "", "(_this distance _target) <= 3"];

TRACE_1("End",_id);
TMFPROFILERSTOP;
_id;